/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uk.ac.cam.can.generalisator;

/**
 *
 * @author Thomas
 */
public class GenSuppression implements Generalisator{
    @Override
    public String gen(String value){
        return "*";
    }

    @Override
    public int getMaxGeneralisation() {
        return 2;
    }

    @Override
    public double getLength(String value) {
        if(value.equals("*"))
            return 2.0;
        else
            return 1.0;
    }

    @Override
    public double getMaxLength() {
        return 2.0;
    }

    @Override
    public String getUngeneralisation(String string) {
        return "?";
    }

    @Override
    public int getGeneralisationLevel(String value) {
        return 0;
    }
}
